package com.dilip.bean;

import java.sql.*;

public class RegisterDao {

	public static int register(User u){
		int status=0;
		try{
			Connection con=ConnectionProvider.getCon();
            PreparedStatement ps=con.prepareStatement("insert into user2 values(?,?,?,?,?)");
			ps.setString(1,u.getUname());
			ps.setString(2,u.getEmail());
			ps.setString(3,u.getPwd());
			ps.setString(4,u.getFnamee());
			ps.setString(5,u.getLaname());
	
			
			status=ps.executeUpdate();
		}catch(Exception e){}
		
		return status;
	}
}
